package com.woniuxy.caradmin.mapper;

import com.woniuxy.caradmin.entity.pojo.Breakrulerecord;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author womenzu
 * @since 2020-12-07
 */
@Repository
public interface BreakrulerecordMapper {
    //所有记录
    public List<Breakrulerecord> selectAll();
    //分页查询
    public List<Breakrulerecord> selectAllBy(Breakrulerecord breakrulerecord);
    //提交记录
    public  int addBreakrulerecord(Breakrulerecord breakrulerecord);
    //更新记录
    public  int  updateBreakrulerecord(Breakrulerecord breakrulerecord);
    //删除记录
    public int removeB(@Param("id") Integer id);
    //根据id查
    public Breakrulerecord selectBreakById(@Param("id") Integer id);
    //根据Did查
    public Breakrulerecord selectBreakByDid(@Param("driverid")Integer driverid );

}
